package com.shameit.goodqrinfomanager.ui.activity.sync;

import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProviders;

import android.os.Bundle;

import com.shameit.goodqrinfomanager.AppViewModelFactory;
import com.shameit.goodqrinfomanager.BR;
import com.shameit.goodqrinfomanager.BaseMVVMActivity;
import com.shameit.goodqrinfomanager.R;
import com.shameit.goodqrinfomanager.databinding.ActivityDataSyncBinding;
import com.shameit.goodqrinfomanager.ui.activity.setting.BaseicSettingViewModel;

public class DataSyncActivity extends BaseMVVMActivity<ActivityDataSyncBinding,DataSyncViewModel> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setToolBarBack(binding.toolbar);
    }

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_data_sync;
    }

    @Override
    public int initVariableId() {
        return BR.data;
    }

    @Override
    public DataSyncViewModel initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        return ViewModelProviders.of(this, factory).get(DataSyncViewModel.class);
    }

    @Override
    protected String setTitle() {
        return "资料同步";
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void loadData() {

    }
}